package org.yiqixue.accounts.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@Schema(
        name = "Transaction",
        description = "Schema to hold Transaction information"
)
public class TransactionDto {

    @Schema(
            description = "Transaction ID",
            example = "1"
    )
    private Long transactionID;

    @Schema(
            description = "Account Number",
            example = "3454433243"
    )
    private Long accountNumber;

    @Schema(
            description = "Transaction Amount",
            example = "1000.00"
    )
    private BigDecimal amount;

    @Schema(
            description = "Transaction Date",
            example = "2024-01-01"
    )
    private Date transactionDate;

    @Schema(
            description = "Transaction Description",
            example = "存款业务"
    )
    private String description;

    @Schema(
            description = "Transaction Status",
            example = "完成"
    )
    private String status;

    @Schema(
            description = "Transaction Type",
            example = "存款"
    )
    private String type;
}